home *** CD-ROM | disk | FTP | other *** search
- Path: myers1-006.resnet.drexel.edu!user
- From: st95h6e9@dunx1.ocs.drexel.edu (Luke Cassady-Dorion)
- Newsgroups: comp.lang.c++
- Subject: Initalizing variables in a for loop
- Date: Mon, 15 Jan 1996 20:22:39 -0500
- Organization: Drexel University, Philly, PA
- Message-ID: <st95h6e9-1501962022390001@myers1-006.resnet.drexel.edu>
- NNTP-Posting-Host: myers1-006.resnet.drexel.edu
-
- When initalizing a variable in a for loop as in the example below does the
- compiler free up the memory allocated to that variable after the loop
- exits, thus making the variable unuseable by other parts of the function,
- or its it retined??
-
-
- for (int i=0; i < some_value, i++)
-
- ------
- Luke Cassady-Dorion
- Drexel University, Philly, PA
- College of Engineering
-
- st95h6e9@dunx1.ocs.drexel.edu
- http://myers1-006.resnet.drexel.edu
-
- Taurus. :)
-
-
-
-